package com.jiesone.logger.distributecleaning.entity;
/*
 *@ClassName LoggersStatistic
 *@Description TODO  日志报表数据
 *@Author tangsixiang@163.com
 *@Date 2022/2/23 15:10
 *@Version 1.0
 */

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NonNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("日志详情上报接口")
public class LoggersStatistic   {
    @NonNull
    //日志应用系统编码
    @ApiModelProperty("日志应用系统编码")
    private String sourceCode;
    //系统存储Index 名称
    @NonNull
    @ApiModelProperty("系统存储Index")
    private String  targetIndex;
    //  日志等级
    @NonNull
    @ApiModelProperty("日志等级")
    private  String  logLevel;
    // 日志记录数量
    @NonNull
    private  long     logCount;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss",iso = DateTimeFormat.ISO.DATE_TIME)
    private  Date     eventTime;
    //日志归属时间点  精确到小时
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:",iso = DateTimeFormat.ISO.DATE_TIME)
    private  Date     dateHoure;
    // 日志放生归属天
    @DateTimeFormat(pattern = "yyyy-MM-dd",iso = DateTimeFormat.ISO.DATE)

    private Date     dateDay;

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public String getTargetIndex() {
        return targetIndex;
    }

    public void setTargetIndex(String targetIndex) {
        this.targetIndex = targetIndex;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public long getLogCount() {
        return logCount;
    }

    public void setLogCount(long logCount) {
        this.logCount = logCount;
    }

    public Date getEventTime() {
        return eventTime;
    }

    public void setEventTime(Date eventTime) {
        this.eventTime = eventTime;
    }

    public Date getDateHoure() {
        return dateHoure;
    }

    public void setDateHoure(Date dateHoure) {
        this.dateHoure = dateHoure;
    }

    public Date getDateDay() {
        return dateDay;
    }

    public void setDateDay(Date dateDay) {
        this.dateDay = dateDay;
    }
}
